package com.github.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Stephen Liu
 * @since 2017/5/5
 */
@RestController
@RequestMapping("/index")
public class IndexController {


    @RequestMapping("/info")
    public String info() {
        String info = "hello my friend";
        System.out.println("info == " + info);
        return info;
    }

    @RequestMapping("/status")
    public String status() {
        String status = "hello status";
        System.out.println("status == " + status);
        return status;
    }
}
